package com.gitee.wsl.ext.collection


fun <T> orderSet(vararg values:T,comparator:(T,T)->Int)  = values.toSortedSet(comparator)

//fun <T:Any> orderSet(vararg values:T,comparator:(T,T)->Int) = mutableSetOf(*values).sortedWith(comparator)

fun orderSet(vararg values:Int)  = values.toSortedSet()

fun orderSet(vararg values:Long)  = values.toSortedSet()

fun orderSet(vararg values:Float)  = values.toSortedSet()

fun orderSet(vararg values:Double)  = values.toSortedSet()

fun orderSet(vararg values:Byte)  = values.toSortedSet()